package com.example.mideaoem.model;

import com.example.mideaoem.bean.BaseMessage;

public class DeviceAppoint extends BaseMessage{
	
	@Override
	public String toString() {
		return "DeviceAppoint [applianceAppointId=" + applianceAppointId
				+ ", applianceId=" + applianceId  + ", switcher=" + switcher + ", time=" + time
				+ ", week=" + week + ", status=" + status + ", isRepeat="
				+ isRepeat + "]";
	}

	/**
	 * 初始化函数
	 * @param applianceId  	appId
	 * @param switcher		true-预约开  false-预约关
	 * @param time			预约时间（UTC时间）
	 * @param week			预约星期  1100101 - 代表周1，2，5，7开启预约
	 * @param status			启动状态 true-有效  false-无效
	 * @param repeat			true - 重复  false-不重复
	 */
	public void init(String applianceId, boolean switcher, String time, String week, boolean status, boolean repeat){
		setApplianceId(applianceId);
		setSwitcher(switcher);
		setTime(time);
		setWeek(week);
		setStatus(status);
		setRepeat(repeat);
	}
	
	public String getApplianceAppointId() {
		return applianceAppointId;
	}
	public void setApplianceAppointId(String applianceAppointId) {
		this.applianceAppointId = applianceAppointId;
	}
	public String getApplianceId() {
		return applianceId;
	}
	public void setApplianceId(String applianceId) {
		this.applianceId = applianceId;
	}
	public String getApplianceName() {
		return applianceName;
	}
	public void setApplianceName(String applianceName) {
		this.applianceName = applianceName;
	}
	public boolean isSwitcher() {
		return switcher;
	}
	public void setSwitcher(boolean switcher) {
		this.switcher = switcher;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getWeek() {
		return week;
	}
	public void setWeek(String week) {
		this.week = week;
	}
	public boolean isStatus() {
		return status;
	}
	public void setStatus(boolean status) {
		this.status = status;
	}
	public boolean isRepeat() {
		return isRepeat;
	}
	public void setRepeat(boolean isRepeat) {
		this.isRepeat = isRepeat;
	}
	private String applianceAppointId;
	private String applianceId;
	private String applianceName;
	private boolean switcher;//预约开关
	private String time;
	private String week;
	private boolean status;//预约设备的状态
	private boolean isRepeat;
	
	
	

	
	
	
}
